// --------------------------------------------------------------------------------------------------------------------
// <copyright file="CopyDatabaseException.cs" company="">
//   
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace ExecutionTool.CopyDatabase
{
    using ExecutionTool.Common;

    public class CopyDatabaseException : StepFaultException
    {
        #region Constructors and Destructors

        public CopyDatabaseException(string message, int errorCode, int innerErrorCode)
            : base(message, StepType.CopyDatabase, errorCode)
        {
            this.InnerErrorCode = innerErrorCode;
        }

        #endregion

        #region Public Properties

        public int InnerErrorCode { get; private set; }

        #endregion

        #region Public Methods and Operators

        public override string ToString()
        {
            return string.Format("Inner Error Code [{0}]:{1}", this.ErrorCode, base.ToString());
        }

        #endregion
    }
}
